package com.mioto.ld.module.device.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 设备告警记录实体
 * @author mioto
 * @date 2024-05-15 16:13:50
 */
@Data
@ApiModel(value = "设备告警记录")
public class DeviceAlertLog implements Serializable{

    private static final long serialVersionUID=DeviceAlertLog.class.getName().hashCode();
    

    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "告警设备id")
    private Integer deviceId;

    @ApiModelProperty(value = "告警id")
    private Integer alertId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "告警时间")
    private Date alertDate;

    @ApiModelProperty(value = "告警触发条件")
    private String triggerCondition;

    @ApiModelProperty(value = "处理状态")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "告警恢复时间")
    private Date recoveryDate;

    @ApiModelProperty(value = "告警恢复条件")
    private String recoveryCondition;
}